package com.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.pojo.BusinessStatistics;
import com.vo.BusinessStatisticsVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BusinessStatisticsDao extends BaseMapper<BusinessStatistics> {

    IPage<BusinessStatisticsVo> getBusinessStatistics(Page page, String name, @Param("time1")String time1, @Param("time2")String time2, @Param("wyId")String wyId);
    List<BusinessStatisticsVo> getBusinessStatisticsByExport(String name, @Param("time1")String time1, @Param("time2")String time2, @Param("wyId")String wyId);

    IPage<BusinessStatisticsVo> getWyStatistics(Page page, String name, @Param("time1")String time1, @Param("time2")String time2);

    IPage<BusinessStatisticsVo> getWyStatisticsDetail(Page page, @Param("wyId")String wyId, @Param("queryDate")String queryDate);

    List<BusinessStatisticsVo> getWyStatisticsByExport(String name, @Param("time1")String time1, @Param("time2")String time2);
}